package com.kakarote.examine.entity.PO;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 邮件审核有效管理表
 * </p>
 *
 * @author zyh
 * @since 2020-12-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wk_examine_record_email")
@ApiModel(value = "ExamineRecordEmail对象", description = "邮件审核有效管理表")
public class ExamineRecordEmail implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "审批流ID")
    private Long examineId;

    @ApiModelProperty(value = "审批类型")
    private Integer label;
    @ApiModelProperty(value = "流程ID")
    private Long flowId;

    @ApiModelProperty(value = "审核记录ID")
    private Long recordId;


    @ApiModelProperty(value = "创建人ID")
    @TableField(fill = FieldFill.INSERT)
    private Long createUserId;

    @ApiModelProperty(value = "修改人ID")
    @TableField(fill = FieldFill.UPDATE)
    private Long updateUserId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "'唯一标识'")
    private String emailToken;

    @ApiModelProperty(value = "''目标邮件''")
    private String toEmail;

    @ApiModelProperty("审核相关的typeid")
    private Long userId;

    @ApiModelProperty(value = "'有效结束时间'")
    private LocalDateTime validEndTime;

    @ApiModelProperty("审核相关的typeid")
    private Long examineRecordTypeId;
    @ApiModelProperty("审核相关的typeid 类型区分 1员工 2外部联系人")
    private Integer examineRecordTypeIdStyle;

}
